package models;

import java.util.ArrayList;
import java.util.List;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.JoinTable;
import javax.persistence.ManyToMany;

import play.db.jpa.Model;
@Entity
public class BD_Agendar extends Model{
	
public BD_Agendar(){
	
}
	@ManyToMany  
	  @JoinTable(  
	  name="Itens_bd_Agendar",  
	  joinColumns=@JoinColumn(name="BD_agendar_ID", referencedColumnName="ID"),  
	  inverseJoinColumns=@JoinColumn(name="ItensReseva_ID", referencedColumnName="ID")  
	       )   
public List<ItensReserva> itensreserva = new ArrayList();

public Cliente cliente;
public double total;

}